From: Alejandro PiƱeiro Date: Tue, 27 Aug 2013 13:44:46 +0000 (+0200) Subject: a11y: calendar: full date string should be navigable X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3588 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a4c1eb12b4a552aabb1312428509e869fe568830;p=gnome-shell.git a11y: calendar: full date string should be navigable Also moved the set of label_actor of the menu some lines before, to improve readability. https://bugzilla.gnome.org/show_bug.cgi?id=706903 --- diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 015a892d9..afb1f48e8 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -1261,6 +1261,10 @@ StScrollBar StButton#vhandle:active { color: #eeeeec; } +.datemenu-date-label:focus { + background-color: #999999; +} + .calendar-day-base { font-size: 9pt; text-align: center; diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index 7c1a5977b..bd72a665c 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -50,6 +50,7 @@ const DateMenuButton = new Lang.Class({ this.parent(menuAlignment); this._clockDisplay = new St.Label({ y_align: Clutter.ActorAlign.CENTER }); + this.actor.label_actor = this._clockDisplay; this.actor.add_actor(this._clockDisplay); this.actor.add_style_class_name ('clock-display'); @@ -62,9 +63,8 @@ const DateMenuButton = new Lang.Class({ hbox.add(vbox); // Date - this._date = new St.Label(); - this.actor.label_actor = this._clockDisplay; - this._date.style_class = 'datemenu-date-label'; + this._date = new St.Label({ style_class: 'datemenu-date-label', + can_focus: true }); vbox.add(this._date); this._eventList = new Calendar.EventsList();